package cn.xingzhe.monster.user.domain.exception;

/**
 * 密码错误异常
 *
 * @author System
 * @version 1.0.0
 * @since 2024-01-01
 */
public class InvalidPasswordException extends UserException {

    private static final String ERROR_CODE = "A0120";
    private static final String DEFAULT_MESSAGE = "密码错误";

    /**
     * 构造函数
     */
    public InvalidPasswordException() {
        super(ERROR_CODE, DEFAULT_MESSAGE);
    }

    /**
     * 构造函数
     *
     * @param message 错误消息
     */
    public InvalidPasswordException(String message) {
        super(ERROR_CODE, message);
    }

    /**
     * 创建密码错误异常
     *
     * @return InvalidPasswordException
     */
    public static InvalidPasswordException of() {
        return new InvalidPasswordException();
    }
}

